<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:id = "@+id/converter_fragment"
    android:layout_height="match_parent">

    <Button
        android:id="@+id/button_image_choose"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/btn_image_selection_text"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent" />

    <ImageView
        android:id="@+id/img_view_jpg"
        android:layout_width="@dimen/picture_size"
        android:layout_height="@dimen/picture_size"
        app:layout_constraintTop_toBottomOf="@+id/button_image_choose"
        app:layout_constraintEnd_toEndOf="parent"
        tools:srcCompat="@tools:sample/avatars"
        app:layout_constraintStart_toStartOf="parent" />


    <Button
        android:id="@+id/button_convert_jpg_png"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toBottomOf="@+id/img_view_jpg"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        android:text="@string/btn_start_converting_text" />

    <ImageView
        android:id="@+id/imgView_converted_img"
        android:layout_width="@dimen/picture_size"
        android:layout_height="@dimen/picture_size"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.5"
        app:layout_constraintTop_toBottomOf="@+id/converse_progressBar"
        app:layout_constraintStart_toStartOf="parent"
        tools:srcCompat="@tools:sample/avatars" />


    <ProgressBar
        android:id="@+id/converse_progressBar"
        style="?android:attr/progressBarStyleHorizontal"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toBottomOf="@+id/button_convert_jpg_png"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

    <ProgressBar
        android:id="@+id/progress_bar_common"
        style="?android:attr/progressBarStyle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintEnd_toEndOf="@+id/imgView_converted_img"
        app:layout_constraintStart_toStartOf="@+id/imgView_converted_img"
        app:layout_constraintBottom_toBottomOf="@+id/imgView_converted_img"
        app:layout_constraintTop_toBottomOf="@+id/converse_progressBar" />


</androidx.constraintlayout.widget.ConstraintLayout>